import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 引入axios
import "./utils/axios"

// 引入ElementUI
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

// 引入MintUI
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.use(MintUI)

// 引入Vant
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);

//引入SockJS和Stomp(优化websocket)
import SockJS from 'sockjs-client'// npm i sockjs
import Stomp from "stompjs"//----2.3.3  npm i stompjs -S
Vue.prototype.$SockJS=SockJS
Vue.prototype.$Stomp=Stomp

//  引入Idb(操作本地IndexedDB数据库)
import Idb from 'idb-js'
Vue.prototype.$Idb=Idb

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
